//
//  T1ViewController.m
//  QuickCure
//
//  Created by 马文星 on 16/4/29.
//  Copyright © 2016年 Demos. All rights reserved.
//

#import "T1ViewController.h"

@interface T1ViewController ()

@end

@implementation T1ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)click:(id)sender {
    
//    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"" bundle:nil];
//    HomeViewController *homeVC = [sb instantiateViewControllerWithIdentifier:@"HomeViewController"];
    
    for (UIViewController *vc in self.navigationController.childViewControllers) {
        
        if ([vc isKindOfClass:[HomeViewController class]]) {
            
            [self.navigationController popToViewController:vc animated:YES];
        }
    }
    
    
}


-(void)dealloc{

    NSLog(@"XIAOHUI");

}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
